package com.andy.web.tools.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.andy.domain.result.BaseResult;

@RestController
@RequestMapping("/tools")
public class ToolsController {

	@RequestMapping("/categories")
	public BaseResult fetchCategories() {
		BaseResult res = new BaseResult();
		return res;
	}
	
//	@RequestMapping(value = "/fileUpload", method = RequestMethod.POST)
//	public BaseResult upload(HttpServletRequest request, HttpServletResponse response) throws Exception{
//		BaseResult res= new BaseResult();
//	    MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
//	    MultipartFile multipartFile = multipartRequest.getFile("file");
//	    logger.info( "excel file upload" );
//	    return exportServie.importActivityExcel(multipartFile.getInputStream());
//		return res;
//	}
}
